.class Lcom/example/m6shop/GoodsActivity$9;
.super Ljava/lang/Thread;
.source "GoodsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/GoodsActivity;->livegoods()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/GoodsActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/GoodsActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    .line 641
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 12

    .prologue
    const/4 v11, 0x1

    .line 643
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 646
    new-instance v3, Landroid/os/Message;

    invoke-direct {v3}, Landroid/os/Message;-><init>()V

    .line 648
    .local v3, "msg":Landroid/os/Message;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u5f00\u59cb\u6293\u53d6\u6570\u636e---"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 649
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    const-string v9, "userInfo"

    .line 650
    const/4 v10, 0x0

    .line 649
    invoke-virtual {v8, v9, v10}, Lcom/example/m6shop/GoodsActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v5

    .line 651
    .local v5, "preferences":Landroid/content/SharedPreferences;
    const-string v8, "uid"

    const-string v9, ""

    invoke-interface {v5, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 652
    .local v0, "account":Ljava/lang/String;
    const-string v8, "pass"

    const-string v9, ""

    invoke-interface {v5, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 653
    .local v4, "password":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v8, ""

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_1

    .line 654
    :cond_0
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 655
    const-string v8, "nologin"

    iput-object v8, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 656
    iput v11, v3, Landroid/os/Message;->arg1:I

    .line 657
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v8, v8, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 699
    :goto_0
    return-void

    .line 661
    :cond_1
    new-instance v8, Ljava/lang/StringBuilder;

    iget-object v9, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v9, v9, Lcom/example/m6shop/GoodsActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v9}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "/index.php?ctrl=app&action=editgoodslive&goodsid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    iget-object v9, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v9, v9, Lcom/example/m6shop/GoodsActivity;->goodsid:Ljava/lang/String;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&is_live="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 662
    iget-object v9, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v9, v9, Lcom/example/m6shop/GoodsActivity;->islive:Ljava/lang/String;

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&uid="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&pwd="

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    const-string v9, "&datatype=json"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 661
    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 663
    .local v7, "url":Ljava/lang/String;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\u8c03\u7528\u66f4\u65b0\u6570\u636e----------------------------"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 664
    invoke-static {v7}, Lmyclass/HttpConn;->getStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    .line 665
    .local v6, "str":Ljava/lang/String;
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "\u8fd4\u56de\u6570\u636e"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v9, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 668
    :try_start_0
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v6}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 670
    .local v2, "json":Lorg/json/JSONObject;
    const-string v8, "error"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    const-string v9, "true"

    invoke-virtual {v8, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-eqz v8, :cond_2

    .line 671
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 673
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, v3, Landroid/os/Message;->obj:Ljava/lang/Object;

    .line 674
    const/4 v8, 0x1

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 675
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v8, v8, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto/16 :goto_0

    .line 691
    .end local v2    # "json":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 693
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    .line 694
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 696
    const/4 v8, 0x4

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 697
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v8, v8, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 678
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "json":Lorg/json/JSONObject;
    :cond_2
    :try_start_1
    const-string v8, "msg"

    invoke-virtual {v2, v8}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_3

    .line 679
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 680
    const/4 v8, 0x2

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 681
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v8, v8, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto/16 :goto_0

    .line 686
    :cond_3
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u8fd4\u56de\u6570\u636e\u7ed3\u675f"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 687
    invoke-static {}, Lmyclass/Util;->dismisDialog()V

    .line 688
    sget-object v8, Ljava/lang/System;->out:Ljava/io/PrintStream;

    const-string v9, "\u5173\u95ed\u63d0\u793a"

    invoke-virtual {v8, v9}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    .line 689
    const/16 v8, 0x17

    iput v8, v3, Landroid/os/Message;->arg1:I

    .line 690
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity$9;->this$0:Lcom/example/m6shop/GoodsActivity;

    iget-object v8, v8, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    invoke-virtual {v8, v3}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 701
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 702
    monitor-exit p0

    return-void

    .line 701
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
